// import {createStore} from "redux"

// function reducer(state={count:0},action){
//    if(action.type === 'INCREMENT'){
//     return {count:state.count+1}
//    }else if(action.type === 'DECREMENT'){
//     return  {count:state.count-1 }
//    }
//    return state
// }

// const store = createStore(reducer);

// export default store
import { configureStore } from '@reduxjs/toolkit'
import counterReducer from './modules/counterStore'
import channelReducer from './modules/channelStore'
import billStore from './modules/billStore'
import userStore from './modules/userStore'
const store = configureStore({
  reducer: {
    counter: counterReducer,
    channel: channelReducer,
    bill: billStore,
    user: userStore,
  },
})

export default store
